package 一维数组;
public class 合并 {
    public static void main(String[] args) {
        int [] a={1,7,9,11,13,15,17,19};
        int [] b={2,4,6,8,10};
        int [] c=new int[a.length+b.length];
        int j=0;
        for (int i=0;i<c.length;i++){
            if (i<a.length){
                c[i]=a[i];
                System.out.print("\t"+c[i]);
            }else{
                c[i]=b[j];
                System.out.print("\t"+c[i]);
                j++;
            }
        }
    }
}
